package com.freight.order.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.freight.base.vo.AreaAddressVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class OrderGoodsVo extends AreaAddressVo {

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "上传者手机号")
    private String createBy;

    @ApiModelProperty(value = "上传者姓名")
    private String createName;

    @ApiModelProperty(value = "货物id")
    private Long goodId;

    @ApiModelProperty(value = "货物编号")
    private String goodNo;

    @ApiModelProperty(value = "货主Id")
    private Long companyUserId;

    @ApiModelProperty(value = "配载货物重量")
    private double goodWeight;

    @ApiModelProperty(value = "货物类型")
    private String goodType;

    @ApiModelProperty(value = "货物名称")
    private String goodSubType;

    @ApiModelProperty(value = "备注")
    private String content;

    @ApiModelProperty(value = "收货人姓名")
    private String takeName;

    @ApiModelProperty(value = "收货人手机")
    private String takePhone;

    @ApiModelProperty(value = "收货联系人名称")
    private String takeContactName;

    @ApiModelProperty(value = "提货联系人名称")
    private String extracContactName;

    @ApiModelProperty(value = "运费单价")
    private BigDecimal freightUnitPrice;

    @ApiModelProperty(value = "提货人名称")
    private String extractName;

    @ApiModelProperty(value = "提货人电话")
    private String extractPhone;

    @ApiModelProperty(value = "运输时效")
    private double prescription;

    @ApiModelProperty(value = "装货电子围栏")
    private Double pretendEnclosure;

    @ApiModelProperty(value = "卸货电子围栏")
    private Double dischargeEnclosure;

    @ApiModelProperty(value = "计价单位 1按重量 2按体积 3按件数")
    private String valuationUnit;

    @ApiModelProperty(value = "体积")
    private Double volume;

    @ApiModelProperty(value = "件数")
    private Double piece;

}
